package com.shao.im.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.shao.commons.domain.BaseEntity;
import lombok.Data;
import lombok.experimental.Accessors;
import tk.mybatis.mapper.annotation.KeySql;

import java.io.Serializable;

/**
 * 动态表(Post)表实体类
 *
 * @author makejava
 * @since 2023-08-04 22:23:23
 */
@Data
@Accessors(chain = true)
public class Post extends BaseEntity implements Serializable {
    //主键
    @KeySql(useGeneratedKeys = true)
    @TableId(type = IdType.AUTO)
    private Integer pid;
    //用户ID
    private Integer uid;
    //动态内容
    private String content;
}

